/*******************************************************
* Copyright (c) 2018-2088, By XuXiang all rights reserved.
*
* FileName: ConstWrap.cpp
*
* Author: AutoBuild
* Date: --/--
*******************************************************/

#include "ConstWrap.h"
#include "../CSVLoader.h"

namespace Competition
{
	ConstWrap::ConstWrap() : id(0), value1(0), value2(0), value3(0)
	{
	}

	void ConstWrap::Read(CSVLoader* loader)
	{
		id = loader->ReadInt("id");
		name = loader->ReadString("name");
		value1 = loader->ReadInt("value1");
		value2 = loader->ReadInt("value2");
		value3 = loader->ReadInt("value3");
		value_str = loader->ReadString("value_str");
	}
}

